<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  
  <script>
  $(document).ready(function() {
    $("#datepicker").datepicker({
		 dateFormat: "yy-mm-dd"
	});
	 $("#datepickerend").datepicker({
		 dateFormat: "yy-mm-dd"
	});
	
  });
  </script>
<div class=" alert-success "><?php //echo $this->Session->flash(); ?></div>
<div class="bs-example"  >
   <div id="response"> </div>
	<div class="menu-top">
		<div class="title-note">
		<h4><?php echo __('Báo cáo - Thống kê:'.$time); ?></h4>
		
		</div>
		

		<div class="option-action">
		<?php echo $this->Form->create('Mobile',array('class'=>'form-horizontal')); ?>
		<div class="form-group" style="margin-top:15px;">
			
			<div class="col-sm-5">
				<input   style="float:left" id="datepicker" type='text' class="form-control input-sm" name="time_end"/>
				
			</div>
			<button type="submit" class="btn btn-primary btn-sm" style=" padding: 4px 8px;"> Search</button>	
	  </div>
		
					
								
				  
				  
				  <?php 	echo $this->Form->end(); ?>
			
			</div>
	</div>
	
	<table  class="table table-striped table-bordered">
	<tr>		
			<th width="5%">STT</th>
			<th>Tên bác sỹ </th>
			<th >Bệnh viện</th>
			
			<th>Phòng / Khoa</th>
			<th>Email</th>
			<th>Điện thoại</th>
			<th>Tổng câu trả lời đúng</th>
			<th>Tổng thời gian trả lời</th>
			<th>Thời gian kết thúc</th>
	</tr>
	<?php if($dataFull) {
		$i=1;
		foreach($dataFull as $data){
	?>
	<tr>		
			<td width="5%"><?php echo $i;?></td>
			<td><?php echo $data['name']?></td>
			<td ><?php echo $data['organ']?></td>
			<td><?php echo $data['faculty']?></td>
			
			<td><?php echo $data['email']?></td>
			<td><?php echo $data['mobile']?></td>
			<td><?php echo $data['countTrue']?></td>
			<td><?php echo $data['countTime']?></td>
			<td><?php echo date('d-m-Y H:i:s',strtotime($data['timeEnd']))?></td>
	</tr>
	<?php $i++;}}?>
	
	
	</table>
    
</div>

